Tools

If your system uses tools, such as a laser or cutting tool, you can use Tools to configure CADFusion to generate code that executes at specified times when you move over a shape. You can supply your own AeroScript or AeroBasic code, or let CADFusion select the code to use. You can use more than one tool in your project.

The tools that you use in your project are contained in your Tool Catalog. Use the Catalog Manager to add, edit, and organize your tools. You can share tools with other users and other projects. When you use tools from different projects, version conflicts can occur. Refer to Catalog Item Versions and Resolve Version Conflicts.

Types of Tools

NOTE: At this time, bitmaps are only supported in CADFusion projects that target the A3200 motion control system.

Phases of a Tool

A tool has four phases. The table that follows shows the code that is generated for each phase of each tool type and the specified time in a program when the code executes.

Table:     Tool Phases and Code Execution

Tool Phase Custom Code PSO Code Bitmap Code

Initialization

Tool Initialization Code

PSO Initialization Code

Not available

On

Tool On Code

PSO code to enable distance tracking, waveform generation, or set the state of the PSO output

Open .bit file

PSO Initialization Code

Off

Tool Off Code

PSO code to disable distance tracking, waveform generation, or reset the state of the PSO output

Close .bit file

Teardown

Tool Teardown Code

Not available

Not available

Using More Than One Tool

When you export your project to AeroScript or AeroBasic, CADFusion moves through the order of execution to see if each shape uses the same tool as the immediately previous shape. Each time that the tool changes, CADFusion makes these changes to your AeroScript or AeroBasic program:

The execution of Tool On and Tool Off code does not change.

Example

If a shape uses the default tool (Tool A) assigned to the root group and the previous shape in the order of execution uses a different tool (Tool B), then the teardown code for Tool B executes and the initialization code for Tool A executes again.